package com.numberone.web.controller.activityInfo;

import com.numberone.framework.web.base.BaseController;
import com.numberone.system.domain.ActivityInfo;
import com.numberone.system.service.IActivityInfoService;
import com.numberone.system.util.JsonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;


@Controller
@RequestMapping("/api/ActivityInfo")
public class ActivityInfoApiController extends BaseController {

    @Autowired
    private IActivityInfoService activityInfoService;

    @ResponseBody
    @PostMapping("/getGoods")
    public JsonResult getGoods(Long activityId)
    {
        List<ActivityInfo> list = activityInfoService.selectActivityInfoGoods(activityId);
        return JsonResult.success(list);
    }
}
